package com.zjs.server.comsumer.service;

import com.zjs.server.comsumer.pojo.Person;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "server-mongodb")
public  interface PersonService {

    @RequestMapping(value = "/findPerson/{name}")
    Person findPerson(@PathVariable(value = "name") String name);

    @RequestMapping(value = "/addPerson")
    String addPerson();
}
